//
//  JZHHouTableViewCell.m
//  极致荟
//
//  Created by hetao on 14-5-15.
//  Copyright (c) 2014年 mac. All rights reserved.
//

#import "JZHHouTableViewCell.h"

@implementation JZHHouTableViewCell

- (void)awakeFromNib
{
    [self.headimge.layer setCornerRadius:6.0];
    [self.headimge.layer setMasksToBounds:YES];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)addCellData:(JZHReview *)rev
{
    self.name.text=rev.recUser.username;
    self.comment.text=rev.comment;
    NSDateFormatter *form=[[NSDateFormatter alloc]init];
    [form setDateFormat:@"MM-dd hh:mm"];
    self.revdate.text=[form stringFromDate:rev.revdate];
    NSLog(@"%@",rev.recUser.userHeadImage);
    [ImageCache imageUrl:rev.recUser.userHeadImage UiImageview:self.headimge];
}
@end
